
from twisted.python import log
from twisted.internet import reactor
import sys

import common, master

master_config = common.Config( 'config.xml', 'config' ).getSection( 'master' )

log.startLogging(sys.stdout)
mclient = master.MasterClient( master_config['user'], master_config['resource'], 'password', master_config['server']['ip'], master_config['server']['port'], master_config['database']['type'], master_config['database']['location'] )
reactor.run()